package com.glory.brepda.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.glory.brepda.R;
import com.glory.brepda.entity.EqpEntity;
import com.glory.brepda.entity.MarerielLibraryBean;
import com.pda.platform.ui.ui_pdaplatform.utils_public.FreeApi_LogUtils;

import java.util.List;

import androidx.annotation.Nullable;

public class MaterielLibraryListAdapter extends BaseQuickAdapter<MarerielLibraryBean.MlotlistBean, BaseViewHolder> {

    public MaterielLibraryListAdapter(@Nullable List<MarerielLibraryBean.MlotlistBean> data) {
        super(R.layout.item_materiel_library,data);
    }

    @Override
    protected void convert(BaseViewHolder helper, MarerielLibraryBean.MlotlistBean item) {

        helper.setText(R.id.tvPosition,String.valueOf(helper.getAdapterPosition() + 1));
        helper.setText(R.id.tvMaterialrrn,String.valueOf(item.getMaterialrrn()));
        helper.setText(R.id.tvPartnercode,item.getPartnerlotid());
        helper.setText(R.id.tvMainqty,String.valueOf(item.getMainqty()));
        helper.setText(R.id.tvHoldstate,item.getState());
    }
}
